<script>
	$(function() {
		$( "#DisposalDate" ).datepicker();
	});
	$(document).ready(function(){
		<!--
		var currentTime = new Date()
		var month = currentTime.getMonth() + 1
		var day = currentTime.getDate()
		var year = currentTime.getFullYear()
		$( "#DisposalDate" ).val(month + "/" + day + "/" + year)
		//-->
	});
	</script>
<div class="disposals form">
<?php echo $this->Form->create('Disposal');?>
	<fieldset>
		<legend><?php __('Add Disposal'); ?></legend>
	<div class="table">
				<img src="../../img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
				<img src="../../img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
				<table class="listing form" cellpadding="0" cellspacing="0">
					<tr>
						<th class="full">Tarikh</th>
						<th class="full">Cara Perlupusan</th>
					</tr>
					<tr>
						<td class="first"><input type="text" id="DisposalDate" maxlength="255" name="data[Disposal][disposal_date]" style="width:85px"></td>
						<td class="last"><?php echo $this->Form->input('details',array('label'=>false,'style'=>'height: 64px; width: 300px;')); ?></td>
					</tr>
				</table>
		</div>
	</fieldset>
<?php echo $this->Form->hidden('item_id',array('value'=>$id))?>
<?php echo $this->Form->end(__('Tambah', true));?>
</div>
